/**
    <one line to give the program's name and a brief idea of what it does.>
    Copyright (C) 2010  Sean Beecroft

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

 * @version 1.10 2010-01-01
 * @author Sean Beecroft
 */

package yawiki.client.gui;

import java.awt.Insets;

import javax.swing.ImageIcon;
import javax.swing.JToolBar;

public class YToolBar extends JToolBar {

	public YToolBar () { 
		Insets margins = new Insets(0, 0, 0, 0);
		
		YToolBarButton newButton = new YToolBarButton(new ImageIcon("media/new.gif"));
		YToolBarButton openButton = new YToolBarButton(new ImageIcon("media/open.gif"));
		YToolBarButton saveButton = new YToolBarButton(new ImageIcon("media/save.gif"));
	
		
		
		YToolBarButton cutButton = new YToolBarButton(new ImageIcon("media/cut.gif"));
		YToolBarButton copyButton = new YToolBarButton(new ImageIcon("media/copy.gif"));
		YToolBarButton pasteButton = new YToolBarButton(new ImageIcon("media/paste.gif"));
		YToolBarButton clearButton = new YToolBarButton(new ImageIcon("media/clear.gif"));
		
		YToolBarButton undoButton = new YToolBarButton(new ImageIcon("media/undo.gif"));
		YToolBarButton redoButton = new YToolBarButton(new ImageIcon("media/redo.gif"));
		
		YToolBarButton boldButton = new YToolBarButton(new ImageIcon("media/b.gif"));
		YToolBarButton underlineButton = new YToolBarButton(new ImageIcon("media/u.gif"));
		YToolBarButton italicButton = new YToolBarButton(new ImageIcon("media/i.gif"));
		YToolBarButton superscriptButton = new YToolBarButton(new ImageIcon("media/superscript.gif"));
		YToolBarButton subscriptButton = new YToolBarButton(new ImageIcon("media/subscript.gif"));
		YToolBarButton alignCenterButton = new YToolBarButton(new ImageIcon("media/center.gif"));
		YToolBarButton alignRightButton = new YToolBarButton(new ImageIcon("media/right.gif"));
		YToolBarButton alignLeftButton = new YToolBarButton(new ImageIcon("media/left.gif"));
		
		add(newButton);
		add(openButton);
		add(saveButton);
		
		add(cutButton);
		add(copyButton);
		add(pasteButton);
		add(clearButton);
		
		add(undoButton);
		add(redoButton);

		add(subscriptButton);
		add(superscriptButton);

		add(boldButton);
		add(underlineButton);
		add(italicButton);

		add(alignRightButton);
		add(alignLeftButton);
		add(alignCenterButton);
		this.setFloatable(false);
	}
	
}
